<!-- h2 stays for breadcrumbs -->
<h2 class="h2bread">
  <a href="<?php __e(site_url(OS_CRM_SITEADMIN));?>">Dashboard</a> &raquo; 
  <a href="<?php __e(site_url($cur_c));?>"><?php __e(ucwords($p_c));?></a> &raquo; 
  <a href="#" class="active"><?php __e(ucwords($frm_mode));?></a>
</h2>
<div id="main">
  <h3><?php echo $cont_title; ?></h3>
  <?php $this->load->view('admin_messages',$msg_info); ?>
<form action="<?php __e($frm_action);?>" method="post" name="<?php __e($frm_name);?>" id="<?php __e($frm_name);?>" class="frmreg" enctype="multipart/form-data">
  <input type="hidden" name="frm_token" id="frm_token" value="<?php __e($frm_token);?>" />
  <input type="hidden" name="frm_mode" id="frm_mode" value="<?php __e($frm_mode);?>" />
  <input type="hidden" name="frm_id" id="frm_id" value="<?php __e($frm_id);?>" />
  
  <fieldset>
    
  <table border="0" cellpadding="0" cellspacing="0" class="bk_tbl" width="100%">
  
    <tr>
      <td colspan="2"><h3>General Details</h3></td>
    </tr>
    
    <?php
    $edit_j = site_url('journals/os_admin/edit/'.$post_arr['os_journals_id']);
    $edit_v = site_url('volumes/os_admin/setj/'.$post_arr['os_journals_id']);
    ?>  
    <tr>
      <td><label for="txt_id"><span class="imp">&nbsp;</span>Journal ID</label></td>
      <td><a href="<?php __e($edit_j);?>" title="Click here to edit journal info" target="_blank"><?php __earray($post_arr, 'os_journals_id'); ?></a></td>
    </tr>
    <tr>
      <td><label for="txt_id"><span class="imp">&nbsp;</span>Volume ID</label></td>
      <td><a href="<?php __e($edit_v);?>" title="Click here to edit volume info" target="_blank"><?php __earray($post_arr, 'os_volume_id'); ?></a></td>
    </tr>
    
    <tr>
      <td><label for="txt_id"><span class="imp">&nbsp;</span>ID</label></td>
      <td><?php __earray($post_arr, 'os_volume_id'); ?></td>
    </tr>
    <?php if($frm_mode == 'edit'){ $p_dt = __earray($post_arr, 'os_articles_created',TRUE); ?>      
    <tr>
      <td><label for="txt_id"><span class="imp">&nbsp;</span>Created</label></td>
      <td><?php __e( __set_date($p_dt, 3) ); ?></td>
    </tr>                    
    <?php } ?>
    <tr>
      <td><label for="os_volume_status"><span class="imp">&nbsp;</span>Status</label></td>
      <td>   
        <?php $chk = __earray($post_arr, 'os_volume_status', TRUE); ?>
        <input type="checkbox" name="os_volume_status" id="os_volume_status" value="1" <?php if($chk == 1){__e('checked="checked"');}?> />              
      </td>
    </tr>  
    <tr>
      <td><label for="os_volume_no"><span class="imp">*</span>&nbsp;Vol No</label></td>
      <td>
        <input type="text" name="os_volume_no" id="os_volume_no" value="<?php __earray($post_arr, 'os_volume_no'); ?>" maxlength="500" />              
      </td>
    </tr>
    <tr>
      <td><label for="os_volume_year"><span class="imp">*</span>&nbsp;Vol Year</label></td>
      <td>
        <input type="text" name="os_volume_year" id="os_volume_year" value="<?php __earray($post_arr, 'os_volume_year'); ?>" maxlength="500" />              
      </td>
    </tr>
    <tr>
      <td><label for="os_volume_issue_no"><span class="imp">*</span>&nbsp;Vol Issue</label></td>
      <td>
        <input type="text" name="os_volume_issue_no" id="os_volume_issue_no" value="<?php __earray($post_arr, 'os_volume_issue_no'); ?>" maxlength="500" />              
      </td>
    </tr>
    <tr>
      <td><label for="os_volume_issue_dt_range"><span class="imp">*</span>&nbsp;Vol Date</label></td>
      <td>
        <input type="text" name="os_volume_issue_dt_range" id="os_volume_issue_dt_range" value="<?php __earray($post_arr, 'os_volume_issue_dt_range'); ?>" maxlength="500" />              
      </td>
    </tr>
    
    <tr>
      <td colspan="2">
        <h3>Other Details</h3>
      </td>
    </tr>    

    
    <tr>
      <td><label for="os_volume_price"><span class="imp">&nbsp;</span>&nbsp;Price</label></td>
      <td>
        <input type="text" name="os_volume_price" id="os_volume_price" value="<?php __earray($post_arr, 'os_volume_price'); ?>" maxlength="100" /> <span class="frm_help">(Format: 100.00)</span>
      </td>
    </tr>
    <tr>
      <td><label for="os_volume_pages"><span class="imp">&nbsp;</span>&nbsp;Pages</label></td>
      <td>
        <input type="text" name="os_volume_pages" id="os_volume_pages" value="<?php __earray($post_arr, 'os_volume_pages'); ?>" maxlength="100" /> <span class="frm_help">(Format: 10-25)</span>
      </td>
    </tr>
    
    <tr>
      <td colspan="3" align="right">&nbsp;</td>
    </tr> 
    <tr>
      <td colspan="3">
        <h3>Abstract</h3>
      </td>
    </tr>
    <tr>
      <td colspan="3" align="right"><?php
					$data = array(
								  'name'        => 'os_volume_abtract',
								  'id'          => 'os_volume_abtract',
								  'width'       => '90%',
								  'height'      => '300',
                  'value'       => __earray($post_arr, 'os_volume_abtract', TRUE, 'display'),
                  'toolbarset'  => get_fck_toolbar()
						);
					
					echo form_fckeditor( $data );
					?></td>
    </tr>
    <tr>
      <td colspan="3" align="right">&nbsp;</td>
    </tr> 
    <tr>
      <td colspan="3">
        <h3>Content</h3>
      </td>
    </tr>
    <tr>
      <td colspan="3" align="right"><?php
					$data = array(
								  'name'        => 'os_volume_content',
								  'id'          => 'os_volume_content',
								  'width'       => '90%',
								  'height'      => '300',
                  'value'       => __earray($post_arr, 'os_volume_content', TRUE, 'display'),
                  'toolbarset'  => get_fck_toolbar()
						);
					
					echo form_fckeditor( $data );
					?></td>
    </tr> 
    <tr>
      <td colspan="3" align="right">&nbsp;</td>
    </tr> 
    
    <tr>
      <td colspan="3" align="right">&nbsp;</td>
    </tr>
    <tr>
      <td colspan="3" align="right">&nbsp;</td>
    </tr>
    <tr>
      <td colspan="3" align="right">
        <input type="submit" name="btn_reg" id="btn_reg" value="Submit" class="button-submit"/>
        <input type="reset" name="btn_reset" id="btn_reset" value="Reset" class="button-submit"/>
      </td>
    </tr>
  </table>
  </fieldset>  
</form>
</div>
